package com.example.shushiyunsst.fragment.main.home.child;

import com.github.mikephil.charting.data.Entry;
import com.github.mikephil.charting.data.PieEntry;
import com.github.mikephil.charting.formatter.IValueFormatter;
import com.github.mikephil.charting.formatter.ValueFormatter;
import com.github.mikephil.charting.utils.ViewPortHandler;

import java.text.DecimalFormat;

public class IconNodeFormatter extends ValueFormatter {
    public IconNodeFormatter() {
    }

    @Override
    public String getFormattedValue(float value, Entry entry, int dataSetIndex, ViewPortHandler viewPortHandler) {
        return String.valueOf((int) value);
    }

    @Override
    public String getFormattedValue(float value) {
        return String.valueOf((int) value);
    }

    @Override
    public String getPieLabel(float value, PieEntry pieEntry) {
        return String.valueOf((int) value);
    }
}